package Popup;

import Commandes.*;
import Composite.*;
import images.TabsDeDroite;
import java.awt.event.*;
import javax.swing.JOptionPane;


class ControleurAjoutTag implements ActionListener {

    private TabsDeDroite lesTabs;
    private Element el;

    public ControleurAjoutTag(TabsDeDroite lesTabs, Element el) {

        this.lesTabs = lesTabs;
        this.el = el;
    }

    public void actionPerformed(ActionEvent e) {

        String reponse = JOptionPane.showInputDialog(null, "Entrez un nom: ", "Ajouter un Tag", JOptionPane.INFORMATION_MESSAGE);
        if (reponse != null) {

        Commande_AjouterTag c = new Commande_AjouterTag(el,reponse);
        InvokerCommandeFichier.getInvoker().launchCommande(c);
        }

    }
}